TKey
TValue
CSharpTest.Net
LurchTable.KeyCollection.Enumerator<TKey,TValue> Structure
Members  Example  See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace : LurchTable.KeyCollection.Enumerator<TKey,TValue> Structure

Glossary Item Box

Provides an enumerator that iterates through the collection.

Syntax

Visual Basic (Declaration) 
Public Structure LurchTable.KeyCollection.Enumerator
    (Of TKey,TValue) 
   Inherits System.ValueType
C# 
public struct LurchTable.KeyCollection.Enumerator<TKey,TValue> : System.ValueType 

Type Parameters

TKey
TValue

Example

Library/Library.Test/TestLurchTable.cs

C#Copy Code
var sample = GetSample();
var test = CreateSample(sample);
int ix = 0;
foreach (var key in test.Keys)
    Assert.AreEqual(sample[ix++].Value, test[key]);
VB.NETCopy Code
Dim sample As var = GetSample()
Dim test As var = CreateSample(sample)
Dim ix As Integer = 0
For Each key As var In test.Keys
    Assert.AreEqual(sample(System.Math.Max(System.Threading.Interlocked.Increment(ix),ix - 1)).Value, test(key))
Next

Inheritance Hierarchy

System.Object
   System.ValueType
      CSharpTest.Net.Collections.LurchTable`2.KeyCollection.Enumerator<TKey,TValue>

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys